package demo6;

/**
 * 练习:将Student设计为单例的
 */
public class Student {
    private static Student student = new Student();

    private Student(){
    }

    public static Student getInstance(){
        return student;
    }
}
